﻿using SqlSugar;

namespace EnumBuilder
{
    ///<summary>
    ///字典
    ///</summary>
    [SugarTable("Dict", "字典")]
    public partial class Dict 
    {
        public Dict()
        {


        }
        /// <summary>
        /// 字典值
        /// </summary>           
        [SugarColumn(Length = 100, IsNullable = false, ColumnDescription = "字典值")] public string DictValue { get; set; } = string.Empty;

        /// <summary>
        ///分组
        /// </summary>           
        [SugarColumn(Length = 100, IsNullable = false, ColumnDescription = "分组")] public string GroupName { get; set; } = string.Empty;

        /// <summary>
        /// 数据类型
        /// </summary>           
        [SugarColumn(Length = 100, IsNullable = false, ColumnDescription = "数据类型")] public string DictType { get; set; } = string.Empty;



        /// <summary>
        ///排序
        /// </summary>           
        [SugarColumn(IsNullable = false, ColumnDescription = "排序")] public short OrderBy { get; set; } = 0;


        /// <summary>
        /// 主键
        /// </summary>           
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主键")]
        public int DictId { get; set; }


        /// <summary>
        /// 字典key
        /// </summary>           
        [SugarColumn(Length = 100, IsNullable = false, ColumnDescription = "字典key")] public string DictKey { get; set; } = string.Empty;

        /// <summary>
        /// 英文描述
        /// </summary>           
        [SugarColumn(Length = 500, IsNullable = false, ColumnDescription = "描述")] public string EnDescription { get; set; } = string.Empty;

        /// <summary>
        /// 中文描述
        /// </summary>           
        [SugarColumn(Length = 500, IsNullable = false, ColumnDescription = "描述")] public string CnDescription { get; set; } = string.Empty;
    }
}